package day18_Reflection.demo06_Reg;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

//5—10个数字@qq.com或者5—10个数字@163.com
public class Demo06_判断是否是QQ邮箱或163邮箱 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        String reg="^\\d{5,10}@(qq|163).com$";
        Pattern compile = Pattern.compile(reg);
        Matcher matcher = compile.matcher(s);
        boolean matches = matcher.matches();
        System.out.println(matches);
    }
}
